package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.User;

public interface UserService {
    //通过用户名查询用户
    public User findByUsername(String username);

    //分页查询
    PageResult findPage(QueryPageBean queryPageBean);

    //新增用户
    void add(User user);

    //通过id查询用户
    User findById(Integer id);

    //用户信息编辑
    void edit(User user);

    //通过id删除用户
    void deleteUser(Integer id);
}
